import request from '@/utils/request'
import {
  handlerGetUrlParams
} from '@/utils/dealUrlParams.js'

export function getDataAnalysisList() {
  return request({
    url: "/bus/from/list",
    method: 'GET'
  })
}

export function uploadDataAnalysis(data) {
  return request({
    url: '/bus/from/load',
    method: 'POST',
    data
  })
}

export function getAgecyList(param) {
  const url = handlerGetUrlParams('/bus/agency/list', param)
  return request({
    url,
    method: 'GET'
  })
}

export function getReferenceList(param) {
  const url = handlerGetUrlParams('/bus/onfile/list', param)
  return request({
    url,
    method: 'GET'
  })
}